/*
 * @Author      : ZhouQiJun
 * @Date        : 2025-10-02 18:01:09
 * @LastEditors : ZhouQiJun
 * @LastEditTime: 2025-10-02 18:26:10
 * @Description : useCount
 */
import { ref, toValue } from 'vue'

export function useCount(initValue = 0) {
  const count = ref(toValue(initValue))
  const add = (step = 1) => {
    count.value += step
  }
  return {
    count,
    add,
  }
}
